Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc fixes and improvements #223

Merged
merged 4 commits into from
Jun 7, 2024
Merged

Misc fixes and improvements #223

merged 4 commits into from
Jun 7, 2024

Conversation

N-R-K
Copy link
Contributor

@N-R-K N-R-K commented Jun 7, 2024

clipmenud: no need to use volatile sig_atomic_t

since there's no signal handlers involved and signals are
handled with regular code via signalfd.

clipmenud: don't silently ignore arguments

otherwise running something like clipmenud --verbose gives the
false impression of it "working".

config: range check parsed integers

negative values don't make sense for these config vars, so
reject them.

also reject values that are too large and would get truncated.

clipmenud: correct cast to size_t

N-R-K added 4 commits June 7, 2024 16:06
since there's no signal handlers involved and signals are
handled with regular code via signalfd.
otherwise running something like `clipmenud --verbose` gives the
false impression of it "working".
negative values don't make sense for these config vars, so
reject them.

also reject values that are too large and would get truncated.
@cdown
Copy link
Owner

cdown commented Jun 7, 2024

These look fine, thanks. My general feeling is that if one willingly shoots themself in the foot that's fine, but I am also fine with not providing the bullets :)

And thanks for noticing we no longer need sig_atomic_t, that's from before the signalfd migration.

@cdown cdown merged commit 1113ca8 into cdown:develop Jun 7, 2024
1 check passed
@N-R-K N-R-K deleted the misc branch June 8, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants